package com.ruoyi.galaxy.service.impl;

import com.ruoyi.galaxy.service.IGalaxyApiRequestService;
import com.ruoyi.galaxy.service.IGalaxyProjectService;
import com.ruoyi.galaxy.vo.project.GalaxyApiProjectDetailResponse;
import com.ruoyi.galaxy.vo.project.GalaxyApiProjectEventResponse;
import com.ruoyi.galaxy.vo.project.GalaxyApiProjectListResponse;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author yeoman
 * @date 2025/4/10 18:45
 * @description GalaxyProjectServiceImpl
 */
@Component
public class GalaxyProjectServiceImpl implements IGalaxyProjectService {

    @Resource
    private IGalaxyApiRequestService galaxyApiRequestService;

    @Override
    public GalaxyApiProjectListResponse selectProjectList() {
        return galaxyApiRequestService.getProjectList();
    }

    @Override
    public GalaxyApiProjectDetailResponse selectProjectDetail(String projectToken) {
        return galaxyApiRequestService.selectProjectDetail(projectToken);
    }

    @Override
    public GalaxyApiProjectEventResponse selectProjectEvent(String eventToken, Long userId) {
        return galaxyApiRequestService.selectProjectEvent(eventToken, userId);
    }

}
